import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

let router =  new Router({
    linkActiveClass:'active',
    routes: [
        {
            path:'/',
            redirect:'/home'
        },
        {
            path:'/home',
            component:() => import('@/views/home')
        },
        {
            path:'/order',
            component:() => import('@/views/order')
        },
        {
            path:'/menu',
            component:() => import('@/views/menu')
        },
        {
            path:'/my',
            component:() => import('@/views/my')
        },
        {
            path:'/order',
            component:() => import('@/views/order')
        },
        {
            path:'/login',
            component:() => import('@/views/login')
        }
    ]
})

export default router

